package cn.edu.dao.impl;

import cn.edu.dao.ICity;
import cn.edu.entity.City;
import cn.edu.util.CityUtil;

import java.util.List;

public class ICityImpl implements ICity {
    @Override
    public List<City> getAlllist(int pId) throws Exception {
        String sql = "select * from tb_city where p_id = ?";
        return CityUtil.getList(sql,new Integer[]{pId});

    }
}
